home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 423_01 / recio200 / rcbget.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-15  |  1.2 KB  |  35 lines

  1. /*****************************************************************************
  2.    MODULE: rcbget.c
  3.   PURPOSE: recio column delimited integral number input functions
  4. COPYRIGHT: (C) 1994 William Pierpoint
  5.  COMPILER: Borland C Version 3.1
  6.        OS: MSDOS Version 6.2
  7.   VERSION: 2.00
  8.   RELEASE: April 15, 1994
  9. *****************************************************************************/
  10.  
  11. #include <ctype.h>
  12. #include <errno.h>
  13. #include <limits.h>
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <string.h>
  17.  
  18. #include "_rcbget.h"
  19.  
  20. extern unsigned long str2ul(const char *nptr, char **endptr, int base);
  21.  
  22. /****************************************************************************/
  23. /* rcbget_fn() - define rcbget functions                                    */
  24. /****************************************************************************/
  25. #define uint   unsigned int
  26. #define ulong  unsigned long
  27. #ifdef __BORLANDC__
  28. #pragma warn -ccc
  29. #endif
  30.  
  31. rcbget_fn(   int,  rcbgeti,  0,  long, strtol,  INT_MIN,   INT_MAX)
  32. rcbget_fn(  uint, rcbgetui,  0, ulong, str2ul,        0,  UINT_MAX)
  33. rcbget_fn(  long,  rcbgetl, 0L,  long, strtol, LONG_MIN,  LONG_MAX)
  34. rcbget_fn( ulong, rcbgetul, 0L, ulong, str2ul,        0, ULONG_MAX)
  35.